# -*- coding: utf-8 -*-

# @Author : guoxin

# @Time : 2024/4/23 10:17

# @QQ :363673234
import redis

from common.yaml_utils import GetConf


class RedisOperation:
    def __init__(self):
        redis_info = GetConf().get_redis()
        self.redis_client = redis.Redis(
            host=redis_info["host"],
            port=redis_info["port"],
            db=redis_info["db"],
            decode_responses=True,
            # password=user:password
        )


if __name__ == '__main__':
    print(RedisOperation().redis_client.get("guoxin"))